import request from "../utils/request";

// /user/passport/sendCode/{ phone }

export const verificationCode = (phone) => {
  return request({
    method: "GET",
    url: `/user/passport/sendCode/${phone}`,
  });
};

//注册用户
export const rigisterPhone = (data) => {
  return request({
    method: "POST",
    url: "/user/passport/register",
    data,
  });
};

//登录
export const loginNumber = (data) => {
  return request({
    method: "POST",
    url: "/user/passport/login",
    data,
  });
};
